import { defineStore } from 'pinia'
import { ref } from 'vue'
export const useUserCollectionStore = defineStore(
  'userCollection',
  () => {
    const UserCollectionInfo = ref([])
    const setUserCollectionInfo = (UserCollection) => {
      UserCollectionInfo.value = UserCollection
    }
    const removeUserCollectionInfo = () => {
      UserCollectionInfo.value = []
    }

    return {
      UserCollectionInfo,
      setUserCollectionInfo,
      removeUserCollectionInfo
    }
  },
  {
    persist: {
      enabled: true,
      storage: localStorage
    }
  }
)
